实体的图层名属性
__property BSTR Layer;
例如: C# 判断对象所在层是否被锁定
MxDrawDatabase database = (MxDrawDatabase)axMxDrawX1.GetDatabase(); MxDrawLayerTable layerTab = database.GetLayerTable(); MxDrawLayerTableRecord layerRec = layerTab.GetAt(ent.Layer); if (layerRec.IsLocked) { // 对象在锁定层上. }
IMxDrawEntity 属性